﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test.PLCController
{
  public static class PLCFactory
   {
        public static IPLC CreatePLC(PLCBaseInfo pLCBaseInfo,PLCConnectionInfo pLCConnectionInfo)
        {
            IPLC pPLC = null;
            switch (pLCBaseInfo.ControllerBrand)
            {
                case PLCBrand.Siemens:
                    pPLC = new Siemens1200PLC(pLCBaseInfo, pLCConnectionInfo);
                    break;
            }   
            return pPLC;
        }
   }
}
